package com.iknow.xmpp.smack.avatar;

import org.jivesoftware.smack.Connection;

public final class AvatarRetrieverFactory
{
  public static AvatarRetriever getRetriever(Connection paramConnection, String paramString, AvatarMetadataExtension.Info paramInfo)
  {
    Object localObject;
    String str = paramInfo.getUrl();
    if (str != null)
      localObject = new HttpClientAvatarRetriever(str);
    while (true)
    {
      return localObject;
      localObject = new XmppAvatarRetriever(paramConnection, paramString, paramInfo.getId());
    }
  }
}